https://portal-sandbox.seapay.com.sa/api/v01/merchants/[merchant-code]/pre-rules
Returns a set of pre-rules to validate billing address, issuing bank country, card type.
| Resource URL | Description |
|---|---|
| https://portal-sandbox.seapay.com.sa/api/v01/merchants/[merchant-code]/pre-rules/[rule-id] | Pre-Rule to validate billing address, issuing bank countries, card type. |
| Method: GET | Implicit: No | Returns: ServiceResponse |
| Consumes: json, xml, xurl | Produces: json, xml, xurl | |
|
Copies the list of all available rules between selected merchants.
|
||
| Method: GET | Implicit: No | Returns: ServiceResponse |
| Consumes: json, xml, xurl | Produces: json, xml, xurl | |
|
Copies the list of all available rules between selected merchants.
|
||
| Method: POST | Implicit: Yes | Returns: PreRule |
| Consumes: json, xml, xurl | Produces: json, xml, xurl | |
|
Creates a new rule.
|
||
| Method: GET | Implicit: Yes | Returns: n/a |
| Consumes: json, xml, xurl | Produces: json, xml, xurl | |
|
Finds all pre-rules defined for the merchant.
|
||
| # | Name | Type | Required | Default | Description |
|---|---|---|---|---|---|
| 01 | offset | Integer | No | 0 |
Index of the first record returned from the search result.\n\r\n> **Note:** Used with limit parameter for pagination. Use this field for implementing paginated results. |
| 02 | limit | Integer | No | 100 |
Maximum number of records to load per search call.\n\r\n> **Note:** Adjust based on performance requirements. Use this field to balance response size and performance. |
| Method: POST | Implicit: Yes | Returns: PreRule |
| Consumes: json, xml, xurl | Produces: json, xml, xurl | |
|
Allows to modify the pre-rule for the merchant.
The used have to send the ID of the pre-rule and fields that are to be changed in the request. |
||
| Method: POST | Implicit: Yes | Returns: PreRule |
| Consumes: json, xml, xurl | Produces: json, xml, xurl | |
|
Allows to change the execution priority of the pre-rule.
|
||
| # | Name | Type | Required | Default | Description |
|---|---|---|---|---|---|
| 01 | value | String | Yes | - |
Parameter can take one of the following values:
highest - assignes a highest priority to the rule lowest - assignes a lowest priority to the rule +N - increases priority of the rule by N, where N is an integer value -N - decreases priority of the rule by N, where N is an integer value |